package com.wyl.niupi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
public class NiupiApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(NiupiApplication.class, args);
        System.err.println("swagger文档访问地址： https://localhost:8080/swagger-ui.html");
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(NiupiApplication.class);
    }

}
